package com.newsinfo.pojo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.newsinfo.validation.FirstOrder;
import com.newsinfo.validation.SecondOrder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class LoginOrRegisterUser {
    @Pattern(regexp = "^\\S{5,16}$", message = "用户名必须是5-16个非空白字符", groups = {FirstOrder.class})
    private String username;//用户名
    @Pattern(regexp = "^\\S{5,16}$", message = "密码必须是5-16个非空白字符", groups = {SecondOrder.class})
    private String password;//密码
    private String rePassword;//密码
}
